home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.3
/
Video Toaster v4.3.iso
/
4.2
/
programs
/
documentation
/
arexx
/
cgarexx.doc
next >
Wrap
Text File
|
1998-04-16
|
3KB
|
152 lines
Tentative ToasterCG Arexx commands
* NOTE: These commands are subject to change, they may not all be fully implemented
or bug free, and there will certainly be more forthcoming. If there are
bugs, or missing commands please let me (Arnie) know ASAP.
Sat Oct 15 14:22:41 1994
GET_CHAR() -- Returns current character as a single letter string.
GET_CHAR(SPOT) -- Returns current char position
GET_CHAR(FACE) -- Returns current char's font name ***
GET_CHAR(SIZE) -- Returns char's width (dx)
GET_CHAR(FIRST) -- Returns first char on current line
GET_CHAR(LAST) -- Returns last char on current line
GET_CHAR(NEXT) -- Returns next char on current line
GET_CHAR(PREV) -- Returns previous char on current line
GET_CHAR(RGBA) -- Returns current char's (top) color
GET_CHAR(TOPR) -- Returns current char's (top) color
GET_CHAR(BOTR) -- Returns current char's bottom color
GET_CHAR(STAT) -- Returns 1 if character is selected
GET_BORD(SIZE)
GET_BORD(RGBA)
GET_BORD(PRIO)
GET_SHAD(TYPE)
GET_SHAD(PRIO)
GET_SHAD(SIZE)
// GET_SHAD(TOPR)
GET_SHAD(RGBA)
//GET_SHAD(BOTR)
GET_FONT() -- Returns current char's font name
GET_FONT(TYPE)
GET_FONT(SIZE)
GET_FONT(name,[size]) -- Returns an available size of font named,
GET_FONT(NEXT) /* Get's next font from list */
GET_FONT(FIRST) /* Reset's back to the first font */
GET_RECT(SPOT)
GET_RECT(SIZE)
GET_RECT(PRIO)
GET_RECT(TOPR)
GET_RECT(RGBA)
GET_RECT(BOTR)
GET_PAGE() // return number
GET_PAGE(FIRST)
GET_PAGE(LAST)
GET_PAGE(NEXT)
GET_PAGE(PREV)
GET_PAGE(TYPE)
GET_PAGE(SIZE)
GET_PAGE(BACK)
GET_LINE()
GET_LINE(FIRST)
GET_LINE(LAST)
GET_LINE(NEXT)
GET_LINE(PREV)
GET_LINE(TYPE)
GET_LINE(SIZE)
GET_LINE(JUST)
GET_LINE(SPOT)
/* SET_ line, char, page, etc sets current object then PICK selects that object,
or selects relative to that object (i.e. SET_ line number, PICK a char in
that line). SET_ in the case of pages or attributes actually changes the page#
or changes attrs of the selected object(s)
*/
(change character values with Make/Kill char)
SET_CHAR(FACE,name)
SET_CHAR(TOPR,r,g,b,a)
SET_CHAR(BOTR,r,g,b,a)
SET_CHAR(RGBA,r,g,b,a)
SET_BORD(SIZE,#)
SET_BORD(RGBA,r,g,b,a)
SET_BORD(PRIO,T|B)
SET_SHAD(TYPE,D|C)
SET_SHAD(PRIO,T|B)
SET_SHAD(SIZE,#)
SET_SHAD(RGBA,r,g,b,a)
SET_RECT(SPOT,x,y)
SET_RECT(SIZE,x,y)
SET_RECT(PRIO,T|B)
SET_RECT(RGBA,r,g,b,a)
SET_PAGE(#)
SET_PAGE(FIRST)
SET_PAGE(LAST)
SET_PAGE(NEXT)
SET_PAGE(PREV)
SET_PAGE(TYPE)
SET_PAGE(BACK)
SET_LINE(#)
SET_LINE(FIRST)
SET_LINE(LAST)
SET_LINE(NEXT)
SET_LINE(PREV)
SET_LINE(TYPE)
SET_LINE(JUST,L|R|C|N)
SET_LINE(SPOT)
PICKPAGE([#]) // selects whole current page (jumps to it if # supplied)
PICKLINE([#]) // selects whole current line (sets new current if # supplied)
PICKCHAR([NOT]) // Pick current char, deselect if arg provided
<<LOADPAGE(name)>>
LOADBOOK(name)
LOADBRUSH(name)
LOADFONT(name)
LOADTEXT(name)
LOADPICT(name)
<<SAVEPAGE(name)>>
SAVEBOOK(name)
SAVETEXT(name)
MAKECHAR(letter)
MAKELINE(text)
MAKERECT(x,y,w,h)
MAKEPAGE([#])
MAKEBOOK(name)
KILLCHAR([#])
KILLLINE([#])
KILLPAGE([#])
{ KILLBOOK() // maybe you should just delete a file!
Misc commands
EXIT() // Translates all pages into Farsi and pig-latinizes them before CG exits
RENDER([M|P]) // Main or Preview
REQ_FILE(title,[dir,[name]])
REQ_DIR(title,[dir])
REQ_STRING(title,[default])
REQ_NUMBER(title,[default])
REQ_ASK(title,[title2,[title3]])
REQ_TELL(title,[title2,[title3]])
REXX(macro)